package com.scada.model.bean;



import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder(toBuilder = true)
public class MemberInfo implements Serializable{
	
    /**
	 * 
	 */
	private static final long serialVersionUID = 8822454325047462752L;

	private Long id;

    private String name;

    private String surname;

    private String enName;

    private String sex;

    private String telephone;

    private String mobile;

    private String familyTel;

    private String workTel;

    private String wechatNum;

    private String email1;

    private String email2;

    private String email3;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date birthday;

    private Integer age;

    private String lectureNotice;

    private String profession;

    private String job;

    private String maritalStatus;

    private String jdq;

    private String contactTime;

    private String timeZone;

    private String mailingAddr;

    private String familyAddr;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date revisitDate;

    private String ifFifteenRevisit;

    private Double idleFunds;

    private Double annualIncome;

    private Double twoYearIncome;

    private String ifAssetsMillion;

    @Builder.Default
    private String isShow = IsShowCode.YES.getKey();

    private Integer createId;

    private Date createDate;

    private Integer lastUpdateId;

    private Date lastUpdateDate;
    
    private String remarks;

    
    public static enum IsShowCode {
		 
    	NO("0", "不可见"),YES("1", "可见");
		
    	IsShowCode(String key, String value) {
			this.key = key;
			this.value = value;
		}

		private String key;
		private String value;

		public String getKey() {
			return key;
		}

		public String getValue() {
			return value;
		}
		
	}
    
    public static enum ifFifteenRevisitCode {
		 
    	NO("0", "不提醒"),YES("1", "提醒");
		
    	ifFifteenRevisitCode(String key, String value) {
			this.key = key;
			this.value = value;
		}

		private String key;
		private String value;

		public String getKey() {
			return key;
		}

		public String getValue() {
			return value;
		}
		
	}
    
}